package org.seven;

import java.io.*;
import java.net.*;
import java.util.Scanner;

/**
 * Created by Administrator on 2016/3/14 0014.
 */
public class Server {
    public static void main(String[] args) throws IOException {
        ServerSocket server = new ServerSocket(8888);
        for ( int i = 0; i < 50; i++ ) {
            Socket socket = server.accept();
            new Thread( new ServerThread(socket) ).start();
        }
    }
}
